<%@ page language="java" import="java.util.*,com.zxl.util.*" pageEncoding="UTF-8"%>
<%
	DBTools dbt = new DBTools();
	List datalist = dbt.GetTotalData();
%>
<anychart>
  <charts>
    <chart plot_type="CategorizedVertical">
	<data>
		<series name="Sales" type="Bar">
			<%
			for(int i = 0; i < datalist.size(); i++){
				HashMap hm = (HashMap) datalist.get(i);
				String sheng = (String) hm.get("sheng").toString();
				double renwu = Double.parseDouble((String) hm.get("renwu").toString());
			%>
				<point name="<%=sheng %>" y="<%=renwu %>" />
			<%
			}
			%>
			
		</series>
	</data>

      <chart_settings>
        <title>
          <text>Sales of ACME Corp.</text>
        </title>
        <axes>
          <y_axis>
            <title>
              <text>Sales</text>
            </title>
          </y_axis>
          <x_axis>
            <labels align="Outside" />
            <title>
              <text>Retail Channel</text>
            </title>
          </x_axis>
        </axes>
      </chart_settings>
    </chart>
  </charts>
</anychart>